﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.DynamicData;
using WebInstagram.DAL;

namespace WebInstagram.Models
{
    public class Photo : BaseEntity
    {
        [Required]
        public byte[]                       Image       { get; set; }

        [Required]
        public string                       User        { get; set; } //author name

        public string                       Title       { get; set; }

        [Required]
        [Display(Name = "Uploaded")]
        public DateTime                     Created     { get; set; }
        public string                       Location    { get; set; }


        public virtual ICollection<Comment> Comments    { get; set; }
        public virtual ICollection<Like>    Likes       { get; set; }


    }
}